<?php 
/*
 * Author: ZhengXing
 * Data: 2010-6-12
 * Usage: Database connection management
 */
	require_once('config.php');
	require_once('includes/db/dbal.'.$phpEx);	
	require_once('includes/db/'.$dbms.'.'.$phpEx);
	
	$db	= new $sql_db();	
	$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, false);
	unset($dbpasswd);
?>